{
  "resourceType": "Bundle",
  "id": "BundleGynecologyToLabTest",
  "meta": {
    "profile": [
      "https://fhir.by/AbstractArea/StructureDefinition/Bundle/MedicationDocument"
    ]
  },
  "identifier": {
    "system": "https://fhir.by/ValueSet/urn:ietf:rfc:3086",
    "value": "{{$guid}}"
  },
  "type": "document",
  "timestamp": "2025-12-10T14:00:00Z",
  "entry": [
    {
      "fullUrl": "Composition/CompositionGynecologyTest",
      "resource": {
        "resourceType": "Composition",
        "id": "{{$guid}}",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/CompDocument"
          ]
        },
        "status": "final",
        "type": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/CompositionType",
              "code": "general",
              "display": "Общая медицинская информация"
            }
          ]
        },
        "subject": [
          {
            "reference": "Patient/PatientWomenTest"
          }
        ],
        "encounter": {
          "reference": "Encounter/EncounterGynecologistTest"
        },
        "date": "2025-12-10T14:00:00Z",
        "author": [
          {
            "reference": "Practitioner/{{PractitionerAuth}}"
          }
        ],
        "title": "CompDocument для наполненного Bundle для жидкостной цитологии",
        "custodian": {
          "reference": "Organization/{{OrganizationAuth}}"
        },
        "event": [
          {
            "detail": [
              {
                "reference": {
                  "reference": "Condition/ExampleDiagnosisHealthyTest"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "ServiceRequest/ExampleGynecologyCytologyTest"
                }
              }
            ]
          },
          {
            "detail": [
              {
                "reference": {
                  "reference": "Specimen/ExampleSpecimenGynecology"
                }
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "Patient/PatientWomenTest",
      "resource": {
        "resourceType": "Patient",
        "id": "PatientWomenTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/PatientWithIdentificationNumber"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/IncapacityExtension",
            "valueBoolean": true
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobProfession",
                "valueString": "Инспектор по контролю за содержанием и охране зеленых насаждений"
              },
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobProfessionCode",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/SpecialtyProfPerson",
                      "code": "3119-007",
                      "display": "Инспектор по контролю за содержанием и охране зеленых насаждений"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/PatientJobPlace",
                "valueString": "УП «Зеленстрой»"
              },
              {
                "url": "https://fhir.by/StructureDefinition/TermOFWork",
                "valuePeriod": {
                  "start": "2020-11-07"
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/MainJobPlace",
                "valueBoolean": true
              }
            ],
            "url": "https://fhir.by/StructureDefinition/PatientJob"
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataBoolean",
                "valueBoolean": true
              },
              {
                "url": "https://fhir.by/StructureDefinition/ConsentPersonalDataPeriod",
                "valuePeriod": {
                  "start": "2025-01-01"
                }
              }
            ],
            "url": "https://fhir.by/StructureDefinition/ConsentPersonalData"
          }
        ],
        "identifier": [
          {
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "INP",
                  "display": "Уникальный идентификационный номер"
                }
              ]
            },
            "value": "7551273A009PB9"
          },
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedString",
                    "valueString": "Центральным РУВД г Минска, 21.08.2021"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedDate",
                    "valueDate": "2021-08-21"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PassportIssuedCode",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/OCAM",
                          "code": "710"
                        }
                      ]
                    }
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PassportIssued"
              }
            ],
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PersonalDocumentType",
                  "code": "Passport-RB",
                  "display": "Паспорт гражданина Республики Беларусь"
                }
              ]
            },
            "value": "MP2334501"
          }
        ],
        "active": true,
        "name": [
          {
            "family": "Иванова",
            "given": [
              "Алла",
              "Викторовна"
            ]
          }
        ],
        "telecom": [
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "SMS",
                          "display": "SMS"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "messenger-tel",
                          "display": "Telegram"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientNotificationType",
                    "valueCodeableConcept": {
                      "coding": [
                        {
                          "system": "https://fhir.by/ValueSet/PatientNotificationType",
                          "code": "e-mail",
                          "display": "e-mail"
                        }
                      ]
                    }
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientConsentForNotification",
                    "valueBoolean": true
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/PatientAccountPoint",
                    "valueBoolean": true
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/PatientTelecomPurpose"
              }
            ],
            "system": "phone",
            "value": "295748411"
          },
          {
            "system": "email",
            "value": "test_mail@gmail.by"
          }
        ],
        "gender": "female",
        "birthDate": "1990-12-31",
        "deceasedBoolean": false,
        "address": [
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/CitizenshipCode",
                      "code": "BY",
                      "display": "Беларусь"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                      "code": "5170309411",
                      "display": "Улица Золотая Горка"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                "valueString": "кв. 29"
              }
            ],
            "use": "home",
            "text": "г.Минск, Улица Золотая Горка, д.5, кв.29",
            "postalCode": "220022"
          },
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/CoutryForAddresses",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/CitizenshipCode",
                      "code": "BY",
                      "display": "Беларусь"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/StreetGeoRegistry",
                "valueCodeableConcept": {
                  "coding": [
                    {
                      "system": "https://fhir.by/ValueSet/StreetGeoRegistry",
                      "code": "51703019678",
                      "display": "Проспект Рокоссовского"
                    }
                  ]
                }
              },
              {
                "url": "https://fhir.by/StructureDefinition/ApartmentRoom",
                "valueString": "кв. 2"
              }
            ],
            "use": "temp",
            "text": "г.Минск, Проспект Рокоссовского, д.20, кв.2",
            "postalCode": "220011"
          }
        ],
        "maritalStatus": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/MaritalStatus",
              "code": "married"
            }
          ]
        },
        "generalPractitioner": [
          {
            "reference": "Organization/{{generalOrganization}}",
            "identifier": {
              "value": "123156789012",
              "period": {
                "start": "2002-12-11"
              }
            }
          }
        ]
      }
    },
    {
      "fullUrl": "Condition/ExampleDiagnosisHealthyTest",
      "resource": {
        "resourceType": "Condition",
        "id": "ExampleDiagnosisHealthyTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/FinalDiagnosis"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/KindOfDiagnosis",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/KindOfDiagnosisCode",
                  "code": "Final"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/AssertedDate",
            "valueDateTime": "2025-12-10"
          }
        ],
        "clinicalStatus": {
          "coding": [
            {
              "system": "http://terminology.hl7.org/CodeSystem/condition-clinical",
              "code": "active"
            }
          ]
        },
        "code": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/InternClassificDiseases10",
              "code": "Z00.0",
              "display": "Z00.0 - Общий медицинский осмотр"
            }
          ]
        },
        "subject": {
          "reference": "Patient/PatientWomenTest"
        },
        "onsetDateTime": "2025-12-10",
        "recordedDate": "2025-12-10",
        "participant": [
          {
            "actor": {
              "reference": "PractitionerRole/{{PractitionerRole1}}"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "Encounter/EncounterGynecologistTest",
      "resource": {
        "resourceType": "Encounter",
        "id": "EncounterGynecologistTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/EncounterGeneral"
          ]
        },
        "extension": [
          {
            "url": "https://fhir.by/StructureDefinition/EncounterConclusion",
            "valueString": "Взята жидкостная цитология"
          },
          {
            "url": "https://fhir.by/StructureDefinition/EncounterTypeOfVisit",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/EncounterTypeOfVisit",
                  "code": "primary",
                  "display": "первичное обращение"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/EncounterTypeOfService",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/EncounterTypeOfService",
                  "code": "free",
                  "display": "Бесплатные услуги"
                }
              ]
            }
          }
        ],
        "status": "completed",
        "class": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/VSTermsOfService",
                "code": "1",
                "display": "амбулаторные"
              }
            ]
          }
        ],
        "priority": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/HealthCareForms",
              "code": "planned",
              "display": "Плановая медицинская помощь"
            }
          ]
        },
        "type": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/TypeOfHealthCare",
                "code": "special",
                "display": "Специализированная медицинская помощь"
              }
            ]
          }
        ],
        "subject": {
          "reference": "Patient/PatientWomenTest"
        },
        "serviceProvider": {
          "reference": "Organization/{{OrganizationAuth}}"
        },
        "participant": [
          {
            "actor": {
              "reference": "PractitionerRole/{{PractitionerRole1}}"
            }
          }
        ],
        "actualPeriod": {
          "start": "2025-12-10T11:10:21Z",
          "end": "2025-12-10T11:25:21Z"
        },
        "reason": [
          {
            "use": [
              {
                "coding": [
                  {
                    "system": "https://fhir.by/ValueSet/EncounterReasons",
                    "code": "consult",
                    "display": "врачебная консультация"
                  }
                ]
              }
            ]
          }
        ],
        "diagnosis": [
          {
            "condition": [
              {
                "reference": {
                  "reference": "Condition/ExampleDiagnosisHealthyTest"
                }
              }
            ],
            "use": [
              {
                "coding": [
                  {
                    "system": "https://fhir.by/ValueSet/TypeOfDiagnosis",
                    "code": "mainDiagnosis"
                  }
                ]
              }
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "ServiceRequest/ExampleGynecologyCytologyTest",
      "resource": {
        "resourceType": "ServiceRequest",
        "id": "ExampleGynecologyCytologyTest",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/ServiceRequestBioMatResearch"
          ]
        },
        "extension": [
          {
            "extension": [
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/Menstruation",
                    "valueDateTime": "2025-12-01"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/Contraception",
                    "valueString": "КОК"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/VaccinationHPV",
                    "valueBoolean": true
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/DateVaccinationHPV",
                    "valueDateTime": "2022-07-18"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/TestHPV",
                    "valueBoolean": true
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/DateTestHPV",
                    "valueDateTime": "2022-06-18"
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/GynecologyCytology"
              }
            ],
            "url": "https://fhir.by/StructureDefinition/TypeOfResearch"
          },
          {
            "url": "https://fhir.by/StructureDefinition/FromOrganization",
            "valueReference": {
              "reference": "Organization/{{OrganizationAuth}}"
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/SpecialtyCode",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/ServiceSpecialtyBy",
                  "code": "C007",
                  "display": "Акушерство и гинекология"
                }
              ]
            }
          },
          {
            "url": "https://fhir.by/StructureDefinition/PurposeOfResearch",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/PurposeOfResearch",
                  "code": "screening",
                  "display": "скрининг"
                }
              ]
            }
          }
        ],
        "identifier": [
          {
            "value": "172"
          }
        ],
        "status": "active",
        "intent": "directive",
        "category": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/HealthcareServiceCategory",
                "code": "03/1",
                "display": "Амбулаторно-поликлиническая диагностика для взрослого населения"
              }
            ]
          }
        ],
        "priority": "routine",
        "code": {
          "concept": {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/ResearchMethods",
                "code": "gynecology-cytology",
                "display": "Цитологическое исследование цервико-вагинальных мазков"
              }
            ]
          }
        },
        "subject": {
          "reference": "Patient/PatientWomenTest",
          "display": "Иванов И.И."
        },
        "encounter": {
          "reference": "Encounter/EncounterGynecologistTest"
        },
        "authoredOn": "2025-12-10T11:15:00Z",
        "requester": {
          "reference": "PractitionerRole/{{PractitionerRole1}}"
        },
        "performer": [
          {
            "reference": "Organization/{{Organization2}}"
          }
        ],
        "location": [
          {
            "reference": {
              "reference": "Location/{{Location}}"
            }
          }
        ],
        "reason": [
          {
            "reference": {
              "reference": "Condition/ExampleDiagnosisHealthyTest"
            }
          }
        ],
        "supportingInfo": [
          {
            "extension": [
              {
                "url": "https://fhir.by/StructureDefinition/HormoneTherapy",
                "valueBoolean": false
              },
              {
                "extension": [
                  {
                    "url": "https://fhir.by/StructureDefinition/HormonalDrugName",
                    "valueString": "Эутирокс"
                  },
                  {
                    "url": "https://fhir.by/StructureDefinition/HormonePeriod",
                    "valuePeriod": {
                      "start": "2022-05-01"
                    }
                  }
                ],
                "url": "https://fhir.by/StructureDefinition/HormonotherapyDetails"
              }
            ]
          }
        ],
        "specimen": [
          {
            "reference": "Specimen/ExampleSpecimenGynecology"
          }
        ]
      }
    },
    {
      "fullUrl": "Specimen/ExampleSpecimenGynecology",
      "resource": {
        "resourceType": "Specimen",
        "id": "ExampleSpecimenGynecology",
        "meta": {
          "profile": [
            "https://fhir.by/StructureDefinition/BioMatSpecimen"
          ]
        },
        "identifier": [
          {
            "value": "245246.2025",
            "assigner": {
              "reference": "Organization/{{OrganizationAuth}}"
            }
          }
        ],
        "type": {
          "coding": [
            {
              "system": "https://fhir.by/ValueSet/VSBiologicalMaterial",
              "code": "12.11.4",
              "display": "Соскоб шейки матки и цервикального канала"
            }
          ]
        },
        "subject": {
          "reference": "Patient/PatientWomenTest"
        },
        "collection": {
          "collector": {
            "reference": "PractitionerRole/{{PractitionerRole1}}"
          },
          "collectedDateTime": "2025-12-10",
          "method": {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/MethodOfObtaining",
                "code": "scraping",
                "display": "соскоб"
              }
            ]
          },
          "bodySite": {
            "concept": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/AnatomicalTerminology",
                  "code": "Cervical-canal",
                  "display": "Цервикальный канал"
                }
              ]
            }
          }
        },
        "processing": [
          {
            "method": {
              "coding": [
                {
                  "system": "https://fhir.by/ValueSet/ColoringMicropreparations",
                  "code": "Native",
                  "display": "Не окрашивался"
                }
              ]
            }
          }
        ],
        "condition": [
          {
            "coding": [
              {
                "system": "https://fhir.by/ValueSet/StateOfSpecimen",
                "code": "COOL",
                "display": "Охлажденный"
              }
            ]
          }
        ]
      }
    }
  ]
}